package com.atguigu.msmservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 阿里云短信服务启动类
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) //此服务不需要加载数据库信息 设置不加载数据库信息
@ComponentScan(basePackages = {"com.atguigu"})//加载需要的配置类路径 设置包扫描的规则
@EnableSwagger2
@EnableDiscoveryClient  //开启Nacos服务注册
public class MsmApplication {

    public static void main(String[] args) {
        SpringApplication.run(MsmApplication.class, args);
    }

}
